package com.sanqi.work.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sanqi.work.mapper.WxTmpDayWorkMapper;
import com.sanqi.work.domain.WxTmpDayWork;
import com.sanqi.work.service.IWxTmpDayWorkService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 个人当天数据Service业务层处理
 * 
 * @author duany
 * @date 2025-10-14
 */
@Service
public class WxTmpDayWorkServiceImpl extends ServiceImpl<WxTmpDayWorkMapper, WxTmpDayWork> implements IWxTmpDayWorkService 
{
    @Autowired
    private WxTmpDayWorkMapper wxTmpDayWorkMapper;

    /**
     * 查询个人当天数据
     * 
     * @param id 个人当天数据主键
     * @return 个人当天数据
     */
    @Override
    public WxTmpDayWork selectWxTmpDayWorkById(String id)
    {
        return wxTmpDayWorkMapper.selectWxTmpDayWorkById(id);
    }

    /**
     * 查询个人当天数据列表
     * 
     * @param wxTmpDayWork 个人当天数据
     * @return 个人当天数据
     */
    @Override
    public List<WxTmpDayWork> selectWxTmpDayWorkList(WxTmpDayWork wxTmpDayWork)
    {
        return wxTmpDayWorkMapper.selectWxTmpDayWorkList(wxTmpDayWork);
    }

    /**
     * 新增个人当天数据
     * 
     * @param wxTmpDayWork 个人当天数据
     * @return 结果
     */
    @Override
    public int insertWxTmpDayWork(WxTmpDayWork wxTmpDayWork)
    {
        return save(wxTmpDayWork) ? 1 : 0;
    }

    /**
     * 修改个人当天数据
     * 
     * @param wxTmpDayWork 个人当天数据
     * @return 结果
     */
    @Override
    public int updateWxTmpDayWork(WxTmpDayWork wxTmpDayWork)
    {
        return updateById(wxTmpDayWork) ? 1 : 0;
    }

    /**
     * 批量删除个人当天数据
     * 
     * @param ids 需要删除的个人当天数据主键
     * @return 结果
     */
    @Override
    public int deleteWxTmpDayWorkByIds(String[] ids)
    {
        return wxTmpDayWorkMapper.deleteWxTmpDayWorkByIds(ids);
    }

    /**
     * 删除个人当天数据信息
     * 
     * @param id 个人当天数据主键
     * @return 结果
     */
    @Override
    public int deleteWxTmpDayWorkById(String id)
    {
        return wxTmpDayWorkMapper.deleteWxTmpDayWorkById(id);
    }
}
